package com.lelefly.base.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FarmlandTask entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "farmland_task", catalog = "lelefly")
public class FarmlandTask implements java.io.Serializable {

	// Fields

	private Integer id;
	private String farmlandnm;
	private String taskYear;
	private Double taskArea;
	private String taskUavnm;

	// Constructors

	/** default constructor */
	public FarmlandTask() {
	}

	/** minimal constructor */
	public FarmlandTask(String farmlandnm, String taskYear) {
		this.farmlandnm = farmlandnm;
		this.taskYear = taskYear;
	}

	/** full constructor */
	public FarmlandTask(String farmlandnm, String taskYear, Double taskArea,
			String taskUavnm) {
		this.farmlandnm = farmlandnm;
		this.taskYear = taskYear;
		this.taskArea = taskArea;
		this.taskUavnm = taskUavnm;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "farmlandnm", nullable = false, length = 40)
	public String getFarmlandnm() {
		return this.farmlandnm;
	}

	public void setFarmlandnm(String farmlandnm) {
		this.farmlandnm = farmlandnm;
	}

	@Column(name = "task_year", nullable = false, length = 20)
	public String getTaskYear() {
		return this.taskYear;
	}

	public void setTaskYear(String taskYear) {
		this.taskYear = taskYear;
	}

	@Column(name = "task_area", precision = 22, scale = 0)
	public Double getTaskArea() {
		return this.taskArea;
	}

	public void setTaskArea(Double taskArea) {
		this.taskArea = taskArea;
	}

	@Column(name = "task_UAVnm", length = 40)
	public String getTaskUavnm() {
		return this.taskUavnm;
	}

	public void setTaskUavnm(String taskUavnm) {
		this.taskUavnm = taskUavnm;
	}

}